import requestService from "../service/request";
const Api = {
  products: "/wap/commerce/product/products", // 获取选品列表
  category: "/wap/commerce/product/availableCates", // 获取选品列表类目  getPreQuotation: "/verify/getPreQuotationResult",
  detail: "/wap/commerce/product/productInfo", //获取商品详情
};
//获取商品详情
export function getProductDetail(data) {
  return requestService(Api.detail + "/" + data.id, {
    type: "get",
  });
}
//获取资金明细列表
export function getProductList(data) {
  return requestService(Api.products, {
    type: "post",
    data,
  });
}
export function getCategoryList() {
  return requestService(Api.category, {
    type: "get",
  });
}
